.cookbookItemWrapper {
  height: 100%;
}

.cookbookPostItem {
  background-color: #ffbcba34;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  color: var(--ifm-font-color-base);
  display: block;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.cookbookPostItem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background-color: #FFBCBA;
  transition: all 0.3s ease;
}

.cookbookPostItem:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
}

.cookbookPostItem:hover::before {
  background-color: #d32f2f;
}

.cookbookPostItem h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #333333;
  font-weight: 600;
}

.description {
  color: #666666;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.featuredTag {
  position: absolute;
  top: -1px;
  right: -1px;
  background-color: #d32f2f;
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 0 6px 0 6px;
  font-weight: 600;
  z-index: 1;
}

.tagContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background-color: #f5f5f5;
  color: #666;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dark mode styling */
html[data-theme="dark"] .cookbookPostItem,
html[data-theme="dark"] [class*="cookbookPostItem"] {
  background-color: #3a2623 !important;
  border: none;
}

html[data-theme="dark"] .cookbookPostItem h2 {
  color: white;
}

html[data-theme="dark"] .description {
  color: #b0b0b0;
}

html[data-theme="dark"] .cookbookPostItem:hover {
  border: none;
  box-shadow: none;
}

html[data-theme="dark"] .tag {
  background-color: #3e3f36;
  color: #b0b0b0;
}

html[data-theme="dark"] .featuredTag {
  background-color: #ff5252;
  color: #1f201c;
}
